<template>
	<view class="Search">
		<icon type="search" size="40rpx"></icon>
		<input type="text" placeholder="搜索歌曲"  @tap="search" :value="value" />
	</view>
</template>

<script>
	import {getSearch} from "../../tools/ajax.js"
	export default {
		name: "Search",
		data() {
			return {
				value: '123'
			}
		},
		methods:{
			search() {
				console.log("---------")
				uni.navigateTo({
				    url: '../../pages/SearchPage/SearchPage'
				});
				// $router.push("../../pages/SearchPage/SearchPage")
			}
		}
	}
</script>

<style scoped>
	icon{
		position: absolute;
		top: 16rpx; left: 60rpx;
	}
	input{
		width: 600rpx;
		height: 70rpx;
		border-radius: 40rpx;
		margin: auto;
		padding-left: 100rpx;
		background-color: #F1F1F1;
	}
</style>
